/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bgate.object;

import com.bgate.core.Debug;
import java.io.IOException;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.Sprite;

/**
 *
 * @author ChrisMorian
 */
public class Asset {

   
    
    // Map 
    public static Image map1;
    public static Sprite drark;
    public static Image loadImage(String source) {
        Image image = null;
        try {
            image = Image.createImage("/img/" + source);
        } catch (IOException ex) {
            Debug.d("Can't load image at source " + source);
        }
        return image;
    }
}
